package my.soft.aiteacher.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessException extends RuntimeException{
    private String message;
    private Integer code;

    public BusinessException(String message) {
        this.message = message;
        this.code = 500;
    }
}
